package com.kusen.village.raise.topic.impl;

import com.kusen.village.raise.entity.jsonbean.HopefulJson;
import com.kusen.village.raise.enums.TopicEnum;
import com.kusen.village.raise.topic.TopicInterface;
import com.kusen.village.raise.util.JsonUtil;

/**
 * @description: 处理hopeful topic类
 * @author: ghl
 * @create: 2021-10-13 10:05
 **/
public class HopefulTopic implements TopicInterface {
    @Override
    public void handTopic(String topic, String jsonData) {
        //处理 hopeful的方法
      if (TopicEnum.HOPEFUL_TOPIC.getTopic().equals(topic) ) {
          HopefulJson jsonDataFromHopeful = JsonUtil.getJsonDataFromHopeful(jsonData);
          System.out.println(jsonDataFromHopeful);
      }
    }
}
